﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_newLayout.cshtml";
}
<div class="center_center">
    <h2>Sản phẩm mới cập nhật</h2>
    <marquee behavior="scroll" direction="left" onmouseover="this.stop()" onmouseout="this.start()" width="700px" style="margin-left:20px;" >
         @foreach (var item in ViewBag.SanPhamMoi)
    {
    <div class="san_pham">
        <img src="../../Content/images/san_pham/@item.Hinh" /><br />
        <span>
           @item.TenSP  <br />
            Giá : &nbsp; <span style="color:#F00;">@item.DonGia</span> VNĐ <br />
            <input type="submit" name="DatHang" id="btnDatHang" value="Đặt mua" class="button_cm_ct" />  &nbsp; &nbsp;
            <input type="button" name="ChiTiet" id="btnChiTiet" value="Chi tiết" onclick="window.location.href='../QuaLuuNiem/chi_tiet_san_pham/@item.MaSP'" class="button_cm_ct" /> <br />
                            
        </span>
    </div><!--end load san pham-->
    }         
    </marquee>                
</div>
 <div class="center_center"> 
    <h2>Sản phẩm khuyến mãi</h2>
    <marquee behavior="scroll" direction="right" onmouseover="this.stop()" onmouseout="this.start()" width="700px" style="margin-left:20px;" >
    @foreach (var item in ViewBag.SanPhamKM)
    {
    <div class="san_pham">
        <img src="../../Content/images/san_pham/@item.Hinh" /><br />
        <span>
           @item.TenSP  <br />
            Giá : &nbsp; <span style="color:#F00;">@item.DonGia</span> VNĐ <br />
            <input type="submit" name="DatHang" id="btnDatHang" value="Đặt mua" class="button_cm_ct" />  &nbsp; &nbsp;
            <input type="button" name="ChiTiet" id="btnChiTiet" value="Chi tiết" onclick="window.location.href='../QuaLuuNiem/chi_tiet_san_pham'" class="button_cm_ct" /> <br />
                            
        </span>
    </div><!--end load san pham-->
    }          
    </marquee>    
</div><!--end noi dung-->
<div class="center_center" style="padding-top:20px;"> 
    <h2 style="boder-radius:10px">Những tin mới đăng gần đây</h2>
     <div class="tin_tuc">
    <ul style="margin:0px;">
         @foreach (var item in ViewBag.TinMoiNhat)
         {
                <li>
                    <img src="../../Content/images/bai_viet/@item.Hinh" width="50px" height="50px" style="display:inline-block"/> 
                    <a href="../../QuaLuuNiem/ChiTietBaiViet/@item.MaBaiViet">@item.TenBaiViet</a> <br />
                    <span style="color:#093; font-size:12px;">@item.NgayViet</span> 
                    <input type="submit" value="Chi tiết" class="button_ct" onclick="window.location.href='../../QuaLuuNiem/ChiTietBaiViet/@item.MaBaiViet'" style="float:right; " />
                </li>
         } 
    </ul>
    </div><!--end load tin tuc-->        
</div><!--end noi dung-->

